{extend name="common:base"}
{block name="content"}
<fieldset class="layui-elem-field">
    <legend>{$title|default="后台管理"}</legend>
    <!--form的类必须为layui-form 否则样式会不生效-->
        <form action="" method="post" class="layui-form">
            {notempty name='member'}
            {foreach $member as $v}
            <div class="layui-input-block">
                <input type="checkbox" name="uid[]" title="{$v.mname}" lay-skin="primary" {notempty name="oldData"} <?php if(in_array($v['id'],$oldData)) echo "checked";?>{/notempty} value="{$v.id}">
            </div>
            {/foreach}
            {/notempty}
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
</fieldset>
{/block}

